package com.menu.Service;

import com.menu.Pojo.Goods;
import com.menu.Utils.ResponseResult;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@Service
public interface GoodsService {

    /**
     * 添加商品
     * @param goods
     * @param multipartFile
     * @return
     */
    ResponseResult addGoods(Goods goods, MultipartFile multipartFile);

    /**
     * 修改商品信息
     * @param goods
     * @param multipartFile
     * @return
     */
    ResponseResult modifyGoods(Goods goods, MultipartFile multipartFile);

    /**
     * 根据有id查找
     * @param goodsId
     * @param httpRequest
     * @return
     */
    ResponseResult selectGoodsById(Integer goodsId, Integer state, HttpServletRequest httpRequest);

    /**
     * 分页查询商品
     * @param pageStart
     * @param pageSize
     * @return
     */
    ResponseResult selectGoodByPage(Integer pageStart, Integer pageSize,Integer state,String classfy);

    /**
     * 商品模糊搜索
     * @param information
     * @param pageStart
     * @param pageSize
     * @return
     */
    ResponseResult visualGoods(String information, Integer pageStart, Integer pageSize,Integer state);

    /**
     * 获取访问量
     * @return
     */
    ResponseResult getVisitNumber();

    /**
     * 获取热搜关键词
     * @return
     */
    ResponseResult getHotSearch();


}
